<?php
	include_once("login.php");

	$conn = new mysqli($host,$user,$passwd, $database)
	or die("SQL connect error: ".mysqli_connect_error());
	
	$username = $_REQUEST["username"];
	$password = $_REQUEST["password"];
	$salt = $_REQUEST["salt"];
	$query = "INSERT INTO user (username, hashedPassword, salt) VALUES ('$username', '$password', '$salt')";
	
	mysqli_query($conn, $query);
	
	$id =  mysqli_insert_id($conn);
	echo $id;
	mysqli_close($conn);
?>